<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>我的工单</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <include file="Index/common_css"/>
    <link href="__PUBLIC__/admin/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="__PUBLIC__/common/css/dataTables.bootstrap.css" rel="stylesheet">
    <!--分页样式-->
    <style type="text/css">
        div.green-black{padding:3px;margin:3px;text-align:center;}
        div.green-black a{border:#2c2c2c 1px solid;padding:2px 5px;background: #2c2c2c;color:#fff;margin:0 2px 0 0;text-decoration:none;}
        div.green-black a:hover{border:#aad83e 1px solid;background:#aad83e;color:#fff;}
        div.green-black a:active{border:#aad83e 1px solid;background:#aad83e;color:#fff;}
        div.green-black span.current{border:#aad83e 1px solid;padding:2px 5px;font-weight:bold;background:#aad83e;color:#fff;margin:0 2px 0 0;}
        div.green-black span.disabled{border:#f3f3f3 1px solid;padding:2px 5px;color:#ccc;margin:0 2px 0 0;}
    </style>
</head>

<body class="gray-bg">
    <div class="row">
    <div class="col-sm-12">
        <div class="wrapper wrapper-content animated fadeInUp">
            <div class="ibox">
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-12">
                            <div class="m-b-md">
                                <!--<a href="project_detail.html#" class="btn btn-white btn-xs pull-right">编辑项目</a>-->
                                <h2>Mansing Fx 工单处理情况</h2>
                            </div>
                            <dl class="dl-horizontal">
                                <dt>状态：</dt>
                                <dd>
                                    <span class="label label-primary">{$work['state']}</span>

                                </dd>
                            </dl>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-5">
                            <dl class="dl-horizontal">

                                <dt>工单类型：</dt>
                                <dd>{$work['type']}</dd>
                                <dt>标题：</dt>
                                <dd>{$work['title']}</dd>
                                <dt>创建于：</dt>
                                <dd>{$work['time']}</dd>
                                <!--<dt>最后更新：</dt>-->
                                <!--<dd>{$data[2]['time']}</dd>-->

                                <dt>咨询详情：</dt>
                                <dd>{$work['describe']}</dd>

                            </dl>
                        </div>

                    </div>
                    <div class="row">
                        <div class="col-sm-12">
                            <dl class="dl-horizontal">
                                <dt>当前进度</dt>
                                <dd>
                                    <div class="progress progress-striped active m-b-sm">
                                        <div style="width: {$work['state_jd']};" class="progress-bar"></div>
                                    </div>
                                    <small>当前工单已完成 <strong>{$work['state_jd']}</strong></small>
                                </dd>
                            </dl>
                        </div>
                    </div>
                    <div class="photos">
                        <if condition="$work['file'] neq 'Uploads/'">
                            <a target="_blank" href="__ROOT__/{$work['file']}">
                                <img alt="image" class="feed-photo" src="__ROOT__/{$work['file']}">
                            </a>
                        </if>
                        <if condition="$work['file2'] neq 'Uploads/'">
                            <a target="_blank" href="__ROOT__/{$work['file2']}">
                                <img alt="image" class="feed-photo" src="__ROOT__/{$work['file2']}">
                            </a>
                        </if>

                        <if condition="$work['file3'] neq 'Uploads/'">
                            <a target="_blank" href="__ROOT__/{$work['file3']}">
                                <img alt="image" class="feed-photo" src="__ROOT__/{$work['file3']}">
                            </a>
                        </if>
                    </div>


                    <div class="row m-t-sm">
                        <div class="col-sm-12">
                            <div class="panel blank-panel">
                                <div class="panel-heading">
                                    <div class="panel-options">
                                        <ul class="nav nav-tabs">
                                            <li><a href="project_detail.html#tab-1" data-toggle="tab">处理记录</a>
                                            </li>
                                        </ul>
                                    </div>
                                </div>

                                <div class="panel-body">
                                    <div class="tab-content">
                                        <div class="tab-pane active" id="tab-1">
                                            <div class="feed-activity-list">

                                                <foreach name="data" item="data">
                                                    <div class="feed-element">
                                                        <if condition="$data.sys_state eq 1">
                                                            <a href="profile.html#" class="pull-left">
                                                                <img alt="image" class="img-circle" src="__ROOT__/{$user.image}">
                                                            </a>
                                                        <else/>
                                                            <a href="profile.html#" class="pull-left">
                                                                <img alt="image" class="img-circle" src="__ROOT__/Uploads/img.jpg">
                                                            </a>
                                                        </if>
                                                        <div class="media-body ">
                                                            <if condition="$data.sys_state eq 1">
                                                                <small class="pull-right text-navy">{$work['time']}</small>
                                                            <elseif condition="$data.sys_state eq 2"/>
                                                                <small class="pull-right text-navy">{$data['time']}</small>
                                                             <else/>
                                                                <small class="pull-right text-navy">{$data['time']}</small>
                                                            </if>

                                                            <if condition="$data.sys_state eq 1">
                                                                <strong>{$data.k_id}</strong> 提交了工单 <strong>{$work['title']}</strong>
                                                                <elseif condition="$data.sys_state eq 2"/>
                                                                <strong>系统</strong> 正在处理工单 <strong>{$work['title']}</strong>
                                                                <else/>
                                                                <strong>系统</strong> 已完成工单 <strong>{$work['title']}</strong>
                                                            </if>
                                                            <br>
                                                            <if condition="$data.sys_state eq 1">
                                                                <small class="text-muted">{$work['time']}</small>
                                                                <div class="well">{$work['describe']}</div>
                                                                <elseif condition="$data.sys_state eq 2"/>
                                                                <small class="text-muted">{$data['time']}</small>
                                                                <div class="well">{$data['content']}</div>
                                                                <else/>
                                                                <small class="text-muted">{$data['time']}</small>
                                                                <div class="well">{$data['content']}</div>
                                                            </if>

                                                        </div>
                                                    </div>
                                                </foreach>
                                            </div>

                                        </div>

                                    </div>

                                </div>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- 全局js -->
<include file="Index/common_js"/>
<!-- Peity -->
<!--<script src="__PUBLIC__/admin/js/plugins/peity/jquery.peity.min.js"></script>-->
<!-- 自定义js -->
<script src="__PUBLIC__/admin/js/content.js?v=1.0.0"></script>
<script src="__PUBLIC__/admin/js/plugins/layer/laydate/laydate.js"></script>
<script src="__PUBLIC__/admin/js/plugins/validate/jquery.validate.min.js"></script>
<script src="__PUBLIC__/admin/js/plugins/validate/messages_zh.min.js"></script>

</body>
</html>
